import http from "./http";

const getUserInfo = () => http.get('/user/info');
const EditUserInfo = params => http.put('/user/info', params);
const login = params => http.post('/user/login', params);
const logout = () => http.post('/user/logout');
const register = params => http.post('/user/register', params);
const getorderList = (pageNumber, status) => {
    return http.get('/order', {
        params: {
            pageNumber,
            status
        }
    })
}
export default {
    getUserInfo,
    EditUserInfo,
    login,
    logout,
    register,
    getorderList
};